<template>
  <div id="app">
    <h1>透明区域覆盖效果</h1>
    <OverlayImage :baseImage="baseImage" :overlayImage="overlayImage" />
  </div>
</template>

<script>
import OverlayImage from "./OverlayImage.vue";

export default {
  name: "App",
  components: {
    OverlayImage,
  },
  data() {
    return {
      // 带透明区域的图片
      baseImage: "@/assets/phone-case.png",
      // 覆盖的背景图片
      overlayImage: "@/assets/background.jpg",
    };
  },
};
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  text-align: center;
  margin-top: 20px;
}
</style>
